<?php 
class UserModel extends RelationModel {
	
	public $_link = array(

        'role'=> array(  
			'mapping_type'=>HAS_ONE,
			'class_name'=>'Role_user',
			'foreign_key'=>'uid',
			'mapping_name'=>'user',
		),
	);
	
}
?>